﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Finance" targetNamespace="http://tempuri.org/Finance.xsd" xmlns:mstns="http://tempuri.org/Finance.xsd" xmlns="http://tempuri.org/Finance.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="EAppointmentConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="EAppointmentConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.EAppointmentConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TB_FinanceTableAdapter" GeneratorDataComponentClassName="TB_FinanceTableAdapter" Name="TB_Finance" UserDataComponentName="TB_FinanceTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.TB_Finance" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [TB_Finance] WHERE (([Finance_ID] = @Original_Finance_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Finance_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Finance_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [TB_Finance] ([Finance_Type], [Finance_UserID], [Finance_Location], [Finance_Date], [Finance_PubDate], [Finance_Status]) VALUES (@Finance_Type, @Finance_UserID, @Finance_Location, @Finance_Date, @Finance_PubDate, @Finance_Status)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Finance_Type" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Finance_Type" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Finance_UserID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Finance_UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Finance_Location" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Finance_Location" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Finance_Date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Finance_Date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Finance_PubDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Finance_PubDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Finance_Status" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="Finance_Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT   TB_Finance.*
FROM      TB_Finance</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [TB_Finance] SET [Finance_Type] = @Finance_Type, [Finance_UserID] = @Finance_UserID, [Finance_Location] = @Finance_Location, [Finance_Date] = @Finance_Date, [Finance_PubDate] = @Finance_PubDate, [Finance_Status] = @Finance_Status WHERE (([Finance_ID] = @Original_Finance_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Finance_Type" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Finance_Type" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Finance_UserID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Finance_UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Finance_Location" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Finance_Location" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Finance_Date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Finance_Date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Finance_PubDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Finance_PubDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@Finance_Status" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="Finance_Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_Finance_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="Finance_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Finance_ID" DataSetColumn="Finance_ID" />
              <Mapping SourceColumn="Finance_Type" DataSetColumn="Finance_Type" />
              <Mapping SourceColumn="Finance_UserID" DataSetColumn="Finance_UserID" />
              <Mapping SourceColumn="Finance_Location" DataSetColumn="Finance_Location" />
              <Mapping SourceColumn="Finance_Date" DataSetColumn="Finance_Date" />
              <Mapping SourceColumn="Finance_PubDate" DataSetColumn="Finance_PubDate" />
              <Mapping SourceColumn="Finance_Status" DataSetColumn="Finance_Status" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_Appoint_Finance" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="Appoint_Finance" Modifier="Public" Name="Appoint_Finance" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="Appoint_Finance">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_Appoint_Finance</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@UserID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Type" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Location" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@Date" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@Result" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_HandleAppoint_Finance" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HandleAppoint_Finance" Modifier="Public" Name="HandleAppoint_Finance" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="HandleAppoint_Finance">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_HandleAppoint_Finance</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@NewStatus" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@AppointID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Finance" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="Finance" msprop:Generator_UserDSName="Finance">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="TB_Finance" msprop:Generator_TableClassName="TB_FinanceDataTable" msprop:Generator_TableVarName="tableTB_Finance" msprop:Generator_TablePropName="TB_Finance" msprop:Generator_RowDeletingName="TB_FinanceRowDeleting" msprop:Generator_RowChangingName="TB_FinanceRowChanging" msprop:Generator_RowEvHandlerName="TB_FinanceRowChangeEventHandler" msprop:Generator_RowDeletedName="TB_FinanceRowDeleted" msprop:Generator_UserTableName="TB_Finance" msprop:Generator_RowChangedName="TB_FinanceRowChanged" msprop:Generator_RowEvArgName="TB_FinanceRowChangeEvent" msprop:Generator_RowClassName="TB_FinanceRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Finance_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnFinance_ID" msprop:Generator_ColumnPropNameInRow="Finance_ID" msprop:Generator_ColumnPropNameInTable="Finance_IDColumn" msprop:Generator_UserColumnName="Finance_ID" type="xs:long" />
              <xs:element name="Finance_Type" msprop:Generator_ColumnVarNameInTable="columnFinance_Type" msprop:Generator_ColumnPropNameInRow="Finance_Type" msprop:Generator_ColumnPropNameInTable="Finance_TypeColumn" msprop:Generator_UserColumnName="Finance_Type" type="xs:int" />
              <xs:element name="Finance_UserID" msprop:Generator_ColumnVarNameInTable="columnFinance_UserID" msprop:Generator_ColumnPropNameInRow="Finance_UserID" msprop:Generator_ColumnPropNameInTable="Finance_UserIDColumn" msprop:Generator_UserColumnName="Finance_UserID" type="xs:long" />
              <xs:element name="Finance_Location" msprop:Generator_ColumnVarNameInTable="columnFinance_Location" msprop:Generator_ColumnPropNameInRow="Finance_Location" msprop:Generator_ColumnPropNameInTable="Finance_LocationColumn" msprop:Generator_UserColumnName="Finance_Location">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Finance_Date" msprop:Generator_ColumnVarNameInTable="columnFinance_Date" msprop:Generator_ColumnPropNameInRow="Finance_Date" msprop:Generator_ColumnPropNameInTable="Finance_DateColumn" msprop:Generator_UserColumnName="Finance_Date" type="xs:dateTime" />
              <xs:element name="Finance_PubDate" msprop:Generator_ColumnVarNameInTable="columnFinance_PubDate" msprop:Generator_ColumnPropNameInRow="Finance_PubDate" msprop:Generator_ColumnPropNameInTable="Finance_PubDateColumn" msprop:Generator_UserColumnName="Finance_PubDate" type="xs:dateTime" />
              <xs:element name="Finance_Status" msprop:Generator_ColumnVarNameInTable="columnFinance_Status" msprop:Generator_ColumnPropNameInRow="Finance_Status" msprop:Generator_ColumnPropNameInTable="Finance_StatusColumn" msprop:Generator_UserColumnName="Finance_Status" type="xs:unsignedByte" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:TB_Finance" />
      <xs:field xpath="mstns:Finance_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>